﻿using Autofac;
using CrawlerApp.Core.Interfaces;
using CrawlerApp.Core.Services;

namespace CrawlerApp.Configuration
{
    public static class ConfigureCoreServices
    {
        public static App AddCoreServices(this App app, ContainerBuilder builder)
        {
            builder.RegisterType<AccountService>().As<IAccountService>().InstancePerDependency();
            builder.RegisterType<BookService>().As<IBookService>().InstancePerDependency();

            return app;
        }
    }
}
